package com.kma.summer2012.dao;

import com.kma.summer2012.model.CrumbsUser;

import java.sql.SQLException;
import java.util.Collection;

/**
 * Created by IntelliJ IDEA.
 * User: Администратор
 * Date: 16.01.13
 * Time: 20:25
 * To change this template use File | Settings | File Templates.
 */
public interface CrumbsUserDAO extends DAO<CrumbsUser>{
    public void add(CrumbsUser o) throws SQLException;

    public void update(CrumbsUser o) throws SQLException;

    public CrumbsUser getById(int id) throws SQLException;

    public Collection<CrumbsUser> getAll() throws SQLException;

    public void delete(CrumbsUser o) throws SQLException;

    public CrumbsUser searchByLoginPassword(String login,String password) throws SQLException;
}
